package com.community.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.community.common.annotation.Excel;
import com.community.common.core.domain.BaseEntity;

/**
 * patrol对象 patrol
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class Patrol extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 巡更ID */
    private Long patrolId;

    /** 路线ID */
    @Excel(name = "路线ID")
    private Long routeId;

    /** 社区ID */
    @Excel(name = "社区ID")
    private Long communityId;

    /** 巡检人姓名 */
    @Excel(name = "巡检人姓名")
    private String patrollerName;

    /** 巡检人手机号 */
    @Excel(name = "巡检人手机号")
    private String patrollerPhone;

    /** 巡检时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "巡检时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date patrolTime;

    /** 巡更结果 */
    @Excel(name = "巡更结果")
    private String patrolResult;

    /** 图片(JSON数组) */
    @Excel(name = "图片(JSON数组)")
    private String images;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    public void setPatrolId(Long patrolId) 
    {
        this.patrolId = patrolId;
    }

    public Long getPatrolId() 
    {
        return patrolId;
    }

    public void setRouteId(Long routeId) 
    {
        this.routeId = routeId;
    }

    public Long getRouteId() 
    {
        return routeId;
    }

    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }

    public void setPatrollerName(String patrollerName) 
    {
        this.patrollerName = patrollerName;
    }

    public String getPatrollerName() 
    {
        return patrollerName;
    }

    public void setPatrollerPhone(String patrollerPhone) 
    {
        this.patrollerPhone = patrollerPhone;
    }

    public String getPatrollerPhone() 
    {
        return patrollerPhone;
    }

    public void setPatrolTime(Date patrolTime) 
    {
        this.patrolTime = patrolTime;
    }

    public Date getPatrolTime() 
    {
        return patrolTime;
    }

    public void setPatrolResult(String patrolResult) 
    {
        this.patrolResult = patrolResult;
    }

    public String getPatrolResult() 
    {
        return patrolResult;
    }

    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patrolId", getPatrolId())
            .append("routeId", getRouteId())
            .append("communityId", getCommunityId())
            .append("patrollerName", getPatrollerName())
            .append("patrollerPhone", getPatrollerPhone())
            .append("patrolTime", getPatrolTime())
            .append("patrolResult", getPatrolResult())
            .append("images", getImages())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
